﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using au.com.aceinsurance.tsuat;
//using com.acegroup.travel.receive;

public partial class travel_insurance_proposalforms_ace_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //au.com.aceinsurance.tsuat.ACORDService

    }


    protected void btnSend_Click(object sender, EventArgs e)
    {
        ACORDService _acService = new ACORDService();

        //QUOTE REQUEST

        ACORD _newACORD = new ACORD();
        _newACORD.SignonRq = new ACORDSignonRq();
        _newACORD.SignonRq.ClientApp = new ACORDSignonRqClientApp();

        _newACORD.SignonRq.ClientApp.Name = "CompareXpress";
        _newACORD.SignonRq.ClientApp.Org = "com.comparexpress";
        _newACORD.SignonRq.ClientApp.Version = 1;

        _newACORD.SignonRq.ClientDt = CE.Global.General.GetUTCDateTime();
        _newACORD.SignonRq.SignonPswd = new ACORDSignonRqSignonPswd();
        _newACORD.SignonRq.SignonPswd.CustId = new ACORDSignonRqSignonPswdCustId();
        _newACORD.SignonRq.SignonPswd.CustId.CustLoginId = "comparexpress";
        _newACORD.SignonRq.SignonPswd.CustId.SPName = "com.comparexpress";
        _newACORD.SignonRq.SignonPswd.CustPswd = new ACORDSignonRqSignonPswdCustPswd();
        _newACORD.SignonRq.SignonPswd.CustPswd.EncryptionTypeCd = ACORDSignonRqSignonPswdCustPswdEncryptionTypeCd.None;
        _newACORD.SignonRq.SignonPswd.CustPswd.Pswd = "comparexpress";
        _newACORD.SignonRq.CustLangPref = "en-US";

        _newACORD.InsuranceSvcRq = new ACORDInsuranceSvcRq();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRq();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.TransactionRequestDt = CE.Global.General.GetUTCDateTime();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipal();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfo();
        //string _resAddr = "Customer Support, CompareXpress Pte Ltd, 750D Chai Chee Road, #04-06 Technopark @ Chai Chee, Singapore 469004";
        //_newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.Addr.SetValue(_resAddr, _resAddr.Length);
        //string _resCommunication = "84980513";
        //_newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.Communications.SetValue(_resCommunication, _resCommunication.Length);
        //string _resName = "Phyo Kyaw Thant";
        //_newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.NameInfo.SetValue(_resName, _resName.Length);
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfo[] _resArrNameInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfo[1];
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfo _resNameInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfo();
        _resNameInfo.BirthDt = new DateTime(1982, 10, 10);
        _resNameInfo.BirthDtSpecified = true;
        _resNameInfo.Gender = ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoGender.F;
        _resNameInfo.GenderSpecified = true;
        _resNameInfo.id = "-1";
        _resNameInfo.IdNumber = "S1234567D";
        _resNameInfo.IdNumberTypeCd = ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoIdNumberTypeCd.IDNumber;
        _resNameInfo.IdNumberTypeCdSpecified = true;

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoPersonName _resPersonName = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoPersonName();
        _resPersonName.GivenName = "Compare";
        _resPersonName.Surname = "Xpress";
        _resPersonName.TitlePrefix = "WWW";

        _resNameInfo.PersonName = _resPersonName;

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoSupplementaryNameInfo _resSupInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoSupplementaryNameInfo();
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoSupplementaryNameInfoSupplementaryName _resSupNameInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoSupplementaryNameInfoSupplementaryName();
        _resSupNameInfo.GivenName = "CXTest";
        _resSupNameInfo.Surname = "SurName";
        _resSupNameInfo.TitlePrefix = "S";
        _resSupInfo.SupplementaryNameCd = ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoNameInfoSupplementaryNameInfoSupplementaryNameCd.ATTN;
        _resSupInfo.SupplementaryName = _resSupNameInfo;

        _resNameInfo.SupplementaryNameInfo = _resSupInfo;
        _resNameInfo.TitleRelationshipDesc = "Son";

        _resArrNameInfo.SetValue(_resNameInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoAddr[] _resArrAddrInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoAddr[1];
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoAddr _resAddrInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoAddr();
        _resAddrInfo.Addr1 = "750D Chai Chee Road";
        _resAddrInfo.Addr2 = "#04-06 Technopark @ Chai Chee";
        _resAddrInfo.Addr3 = "Singapore 469004";
        _resAddrInfo.City = "Singapore";
        _resAddrInfo.Country = "Singapore";
        _resAddrInfo.id = "-1";
        _resAddrInfo.PostalCode = "469004";
        _resAddrInfo.NameInfoRef = "CompareXpress";
        _resAddrInfo.StateProv = "Singapore";
        _resArrAddrInfo.SetValue(_resAddrInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunications[] _resArrCommunication = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunications[1];
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunications _resCommunication = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunications();

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo _resEmailInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo();
        _resEmailInfo.EmailAddr = "cherylmae.lanot@teledirect.com.sg";
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo _resPhoneInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo();
        _resPhoneInfo.PhoneNumber = "84980513";
        _resPhoneInfo.PhoneTypeCd = ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfoPhoneTypeCd.Cell;

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo[] _newArrEmailInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo[1];
        _newArrEmailInfo.SetValue(_resEmailInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo[] _newArrPhoneInfo = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo[1];
        _newArrPhoneInfo.SetValue(_resPhoneInfo, 0);

        _resCommunication.EmailInfo = _newArrEmailInfo;
        _resCommunication.PhoneInfo = _newArrPhoneInfo;


        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_Destination _resDestination = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_Destination();
        _resDestination.RqUID = "23a84772-b270-4110-8d12-6665d4bf99fb";
        _resDestination.DestinationDesc = "ASEAN";

        
        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_InsuredPackage _resPackage = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_InsuredPackage();
        _resPackage.RqUID = "13a84772-b270-4110-8d12-6665d4bf99fb";
        _resPackage.InsuredPackageDesc = "ASEAN";

        ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_Plan _resPlan = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyComacegroup_Plan();
        _resPlan.RqUID = "33a84772-b270-4110-8d12-6665d4bf99fb";
        _resPlan.PlanDesc = "Single";

        
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicy();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.CompanyProductCd = "";
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.ContractTerm = new ACORDInsuranceSvcRqPersPkgPolicyQuoteInqRqPersPolicyContractTerm();
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.ContractTerm.EffectiveDt = new DateTime(2011, 03, 12);
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.ContractTerm.ExpirationDt = new DateTime(2011, 03, 12);

        ArrayOfACORDInsuranceSvcRqPersPkgPolicyAddRqDataItemDataItem _newDataItem = new ArrayOfACORDInsuranceSvcRqPersPkgPolicyAddRqDataItemDataItem();
        _newDataItem.IdRef = "1";
        _newDataItem.key = "key";
        _newDataItem.type = "type";
        _newDataItem.value = "value";

        ArrayOfACORDInsuranceSvcRqPersPkgPolicyAddRqDataItemDataItem[] _newArrDataItem = new ArrayOfACORDInsuranceSvcRqPersPkgPolicyAddRqDataItemDataItem[1];
        _newArrDataItem.SetValue(_newDataItem, 0);
        //_newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.comacegroup_DataExtensions.SetValue(

        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.Addr = _resArrAddrInfo;
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.Communications = _resArrCommunication;
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.InsuredOrPrincipal.GeneralPartyInfo.NameInfo = _resArrNameInfo;

        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.comacegroup_Destination = _resDestination;
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.comacegroup_InsuredPackage = _resPackage;
        _newACORD.InsuranceSvcRq.PersPkgPolicyQuoteInqRq.PersPolicy.comacegroup_Plan = _resPlan;
        
        ACORD1 _resACORD = _acService.GetTravelQuote(_newACORD);

        //END -QUOTE REQUEST
        
        //POLICY REQUEST
        
        ACORD2 _reqACORD2 = new ACORD2();
        _reqACORD2.SignonRq = new ACORDSignonRq1();
        _reqACORD2.SignonRq.ClientApp = new ACORDSignonRqClientApp1();

        _reqACORD2.SignonRq.ClientApp.Name = "CompareXpress";
        _reqACORD2.SignonRq.ClientApp.Org = "com.comparexpress";
        _reqACORD2.SignonRq.ClientApp.Version = 1;

        _reqACORD2.SignonRq.ClientDt = CE.Global.General.GetUTCDateTime();
        _reqACORD2.SignonRq.SignonPswd = new ACORDSignonRqSignonPswd1();
        _reqACORD2.SignonRq.SignonPswd.CustId = new ACORDSignonRqSignonPswdCustId1();
        _reqACORD2.SignonRq.SignonPswd.CustId.CustLoginId = "comparexpress";
        _reqACORD2.SignonRq.SignonPswd.CustId.SPName = "com.comparexpress";
        _reqACORD2.SignonRq.SignonPswd.CustPswd = new ACORDSignonRqSignonPswdCustPswd1();
        _reqACORD2.SignonRq.SignonPswd.CustPswd.EncryptionTypeCd = ACORDSignonRqSignonPswdCustPswdEncryptionTypeCd1.None;
        _reqACORD2.SignonRq.SignonPswd.CustPswd.Pswd = "comparexpress";
        _reqACORD2.SignonRq.CustLangPref = "en-US";

        _reqACORD2.InsuranceSvcRq = new ACORDInsuranceSvcRq1();
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq = new ACORDInsuranceSvcRqPersPkgPolicyAddRq();
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.RqUID = "03a84772-b270-4110-8d12-6665d4bf99fb";
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.TransactionRequestDt = CE.Global.General.GetUTCDateTime();
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.InsuredOrPrincipal = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipal();
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.InsuredOrPrincipal.GeneralPartyInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfo();

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfo[] _reqArrNameInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfo[1];
        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfo _reqNameInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfo();

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfoPersonName _reqPersonName = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfoPersonName();

        _reqPersonName.Surname = "Test";
        _reqPersonName.GivenName = "CompareXpress";
        _reqPersonName.TitlePrefix = "MS";

        _reqNameInfo.PersonName = _reqPersonName;
        _reqNameInfo.BirthDt = CE.Global.General.GetUTCDateTime().AddYears(-28);
        _reqNameInfo.Gender = ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfoGender.F;
        _reqNameInfo.GenderSpecified = true;
        _reqNameInfo.id = "-1";
        _reqNameInfo.IdNumber = "S1234567D";
        _reqNameInfo.IdNumberTypeCd = ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoNameInfoIdNumberTypeCd.IDNumber;
        _reqNameInfo.IdNumberTypeCdSpecified = true;

        _reqArrNameInfo.SetValue(_reqNameInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoAddr[] _reqArrAddrInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoAddr[1];
        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoAddr _reqAddreInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoAddr();

        _reqAddreInfo.Addr1 = "750D Chai Chee Road";
        _reqAddreInfo.Addr2 = "#04-06 Technopark @ Chai Chee";
        _reqAddreInfo.Addr3 = "Singapore 469004";
        _reqAddreInfo.City = "Singapore";
        _reqAddreInfo.Country = "Singapore";
        _reqAddreInfo.id = "-1";
        _reqAddreInfo.PostalCode = "469004";
        _reqAddreInfo.NameInfoRef = "CompareXpress";
        _reqAddreInfo.StateProv = "Singapore";
        _reqArrAddrInfo.SetValue(_reqAddreInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunications[] _reqArrCommunication = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunications[1];
        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunications _reqCommunication = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunications();

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo _reqEmailInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo();
        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo[] _reqArrEmailInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsEmailInfo[1];

        _reqEmailInfo.EmailAddr = "cherylmae.lanot@teledirect.com.sg";
        _reqArrEmailInfo.SetValue(_reqEmailInfo, 0);

        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo _reqPhoneInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo();
        ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo[] _reqArrPhoneInfo = new ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfo[1];
        
        _reqPhoneInfo.PhoneNumber = "84980513";
        _reqPhoneInfo.PhoneTypeCd = ACORDInsuranceSvcRqPersPkgPolicyAddRqInsuredOrPrincipalGeneralPartyInfoCommunicationsPhoneInfoPhoneTypeCd.Cell;
        _reqArrPhoneInfo.SetValue(_reqPhoneInfo, 0);

        _reqCommunication.EmailInfo = _reqArrEmailInfo;
        _reqCommunication.PhoneInfo = _reqArrPhoneInfo;

         ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicy _reqPersPolicy = new ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicy();
        _reqPersPolicy.CompanyProductCd = "16EF7335-2C5F-4437-A594-9E37007E30B2";

        ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyContractTerm _reqPersContract = new ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyContractTerm();
        _reqPersContract.EffectiveDt = CE.Global.General.GetUTCDateTime().AddDays(1);
        _reqPersContract.ExpirationDt = CE.Global.General.GetUTCDateTime().AddDays(31);

        _reqPersPolicy.ContractTerm = _reqPersContract;
        
        ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_Destination _reqDestination = new ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_Destination();
        _reqDestination.RqUID = "8DDC8B82-C995-44E8-9DED-9D4800950E94";
        _reqDestination.DestinationDesc = "ASEAN";

        ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_InsuredPackage _reqPackage = new ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_InsuredPackage();
        _reqPackage.RqUID = "851cfff2-ed6e-4835-a7fd-9d0d0019c474";
        _reqPackage.InsuredPackageDesc = "Individual";

        ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_Plan _reqPlan = new ACORDInsuranceSvcRqPersPkgPolicyAddRqPersPolicyComacegroup_Plan();
        _reqPlan.RqUID = "1C6C23CC-7B95-4889-8A90-9DAB007874E9";
        _reqPlan.PlanDesc = "Essential";

        ACORDInsuranceSvcRqPersPkgPolicyAddRqComacegroup_PaymentProcess _reqPayment = new ACORDInsuranceSvcRqPersPkgPolicyAddRqComacegroup_PaymentProcess();
      
        PaymentProcess _reqPayProcess = new PaymentProcess();        

        PaymentProcessPaymentRequest _reqPayReq = new PaymentProcessPaymentRequest();
        PaymentProcessPaymentRequestCreditCardDetails _reqCC = new PaymentProcessPaymentRequestCreditCardDetails();

        _reqCC.NameOnCard = "Ray Tan";
        _reqCC.CardType = PaymentProcessPaymentRequestCreditCardDetailsCardType.Amex;
        _reqCC.CardNumber = "371891410719507";
        _reqCC.EncryptionType = PaymentProcessPaymentRequestCreditCardDetailsEncryptionType.None;
        _reqCC.SecurityCode = "1234";
        _reqCC.ExpiryMonth = 7;
        _reqCC.ExpiryYear = 15;

        _reqPayReq.PaymentMode = PaymentProcessPaymentRequestPaymentMode.CreditCard;
        _reqPayReq.TransactionDate = CE.Global.General.GetUTCDateTime();
        _reqPayReq.Currency = PaymentProcessPaymentRequestCurrency.SGD;
        _reqPayReq.Amount = 54;

        _reqPayReq.CreditCardDetails = _reqCC;

        PaymentProcessPaymentResponse _reqPayRes = new PaymentProcessPaymentResponse();
        _reqPayRes.TransactionDate = CE.Global.General.GetUTCDateTime();
        _reqPayRes.ReceiptNumber = "123";

        _reqPayProcess.PaymentRequest = _reqPayReq;
        _reqPayProcess.PaymentResponse = _reqPayRes;

        _reqPayment.PaymentProcess = _reqPayProcess;

        _reqACORD2.InsuranceSvcRq.RqUID = "03a84772-b270-4110-8d12-6665d4bf99fb";
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.InsuredOrPrincipal.GeneralPartyInfo.NameInfo = _reqArrNameInfo;
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.InsuredOrPrincipal.GeneralPartyInfo.Addr = _reqArrAddrInfo;
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.InsuredOrPrincipal.GeneralPartyInfo.Communications = _reqArrCommunication;

        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.PersPolicy = _reqPersPolicy;
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.PersPolicy.comacegroup_Destination = _reqDestination;
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.PersPolicy.comacegroup_InsuredPackage = _reqPackage;
        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.PersPolicy.comacegroup_Plan = _reqPlan;

        _reqACORD2.InsuranceSvcRq.PersPkgPolicyAddRq.comacegroup_PaymentProcess = _reqPayment;
            
        ACORD3 _resACORD3 = _acService.GetTravelPolicy(_reqACORD2);

        //END -POLICY REQUEST

    }
}
